package github.kawaiior.botapiserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;

public class Bot {

    private int id;
    @TableField(value = "bot_id")
    private String botId;
    private String name;
    private String intro;
    @TableField(value = "req_at")
    private int reqAt;
    @TableField(value = "resp_at")
    private int respAt;
    private String token;

    public Bot(int id, String botId, String name, String intro, int reqAt, int respAt, String token) {
        this.id = id;
        this.botId = botId;
        this.name = name;
        this.intro = intro;
        this.reqAt = reqAt;
        this.respAt = respAt;
        this.token = token;
    }

    public Bot(String botId, String name, String intro) {
        this.botId = botId;
        this.name = name;
        this.intro = intro;
    }

    public Bot(String botId) {
        this.botId = botId;
        this.name = "未获取到BOT昵称";
        this.intro = "未获取到BOT简介";
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBotId() {
        return botId;
    }

    public void setBotId(String botId) {
        this.botId = botId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public int getReqAt() {
        return reqAt;
    }

    public void setReqAt(int reqAt) {
        this.reqAt = reqAt;
    }

    public int getRespAt() {
        return respAt;
    }

    public void setRespAt(int respAt) {
        this.respAt = respAt;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
